package com.xr.miniprogram.controller.index;

import java.util.List;
import javax.servlet.http.HttpServletResponse;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.xr.common.annotation.Log;
import com.xr.common.core.controller.BaseController;
import com.xr.common.core.domain.AjaxResult;
import com.xr.common.enums.BusinessType;
import com.xr.miniprogram.domain.MiniProgramQuickEntry;
import com.xr.miniprogram.service.IMiniProgramQuickEntryService;
import com.xr.common.utils.poi.ExcelUtil;
import com.xr.common.core.page.TableDataInfo;

/**
 * 首页快捷按钮Controller
 * 
 * @author wls
 * @date 2023-09-22
 */
@Api("小程序快捷按钮控制")
@RestController
@RequestMapping("/miniprogram/entry")
public class MiniProgramQuickEntryController extends BaseController
{
    @Autowired
    private IMiniProgramQuickEntryService miniProgramQuickEntryService;

    /**
     * 查询首页快捷按钮列表
     */
    @ApiOperation("获取快捷按钮列表")
    @GetMapping("/list")
    public AjaxResult list()
    {
        List<MiniProgramQuickEntry> list = miniProgramQuickEntryService.selectMiniProgramQuickEntryList(new MiniProgramQuickEntry());
        return success(list);
    }


}
